package gamagora.game.world.maps.game
{
	import gamagora.game.world.maps.OSMap;
	import gamagora.game.entity.*;

	public class OSMap22 extends OSMap
	{
		public function OSMap22()
		{
			super();

			var ground:OSGround = new OSGround(0, 160, 60, 700, 0, false);
			ground.setNoErosionLeft([0, 3, 6, 9, 12, 15, 18, 21, 24, 27, 30, 33, 36, 39, 42, 45, 48, 51, 54, 57, 60, 63, 66, 69, 72, 75, 78, 81, 84, 87, 90, 93, 96, 99, 102]);
			ground.erode();
			add(ground);

			ground = new OSGround(0, 1040, 960, 40, 0, false);
			ground.setNoErosionUp([11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47]);
			ground.setNoErosionDown([48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95]);
			ground.setNoErosionLeft([0, 48]);
			ground.setNoErosionRight([47, 95]);
			ground.erode();
			add(ground);

			add(new OSMovingBox(60, 960));

			add(new OSMovingBox(140, 960));

			ground = new OSGround(220, 260, 740, 620, 0, false);
			ground.setNoErosionUp([9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30]);
			ground.setNoErosionDown([1114, 1115, 1116, 1117, 1118, 1119, 1120, 1121, 1122, 1123, 1124, 1125, 1126, 1127, 1128, 1129, 1130, 1131, 1132, 1133, 1134, 1135, 1136, 1137, 1138, 1139, 1140, 1141, 1142, 1143, 1144, 1145, 1146]);
			ground.setNoErosionRight([36, 73, 110, 147, 184, 221, 258, 295, 332, 369, 406, 443, 480, 517, 554, 591, 628, 665, 702, 739, 776, 813, 850, 887, 924, 961, 998, 1035, 1072, 1109, 1146]);
			ground.erode();
			add(ground);

			ground = new OSGround(220, 1000, 740, 40, 0, false);
			ground.setNoErosionUp([4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36]);
			ground.setNoErosionDown([37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73]);
			ground.setNoErosionRight([36, 73]);
			ground.erode();
			add(ground);

			ground = new OSGround(300, 880, 660, 120, 0, false);
			ground.setNoErosionUp([0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32]);
			ground.setNoErosionDown([165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197]);
			ground.setNoErosionRight([32, 65, 98, 131, 164, 197]);
			ground.erode();
			add(ground);

			var house:OSHouse = new OSHouse(400, 40);
			addBackground(house.background);
			addForeground(house);

		}
	}
}
